package cn.com.dhcc.ddi.node.vo.wapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import cn.com.dhcc.app.core.handler.dbhandler.WappedResultSet;
import cn.com.dhcc.ddi.node.vo.OrgInfo;

public class OrgInfoRowWrapper implements RowMapper<OrgInfo> {

	@Override
	public OrgInfo mapRow(ResultSet rss, int arg1) throws SQLException {
		WappedResultSet rs = new WappedResultSet(rss);
		OrgInfo vo = new OrgInfo();
		vo.setNodeCode(rs.getString("ad_cd"));
		vo.setNodeName(rs.getString("ad_nm"));
		vo.setSlszyNode(rs.getString("slszy_node"));
		vo.setNt(rs.getString("nt"));
		vo.setTs(rs.getDate("ts"));
		return vo;
	}

}
